package com.yxp423.ssmempl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxp423.ssmempl.bean.Overtime;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OvertimeMapper extends BaseMapper<Overtime> {

    @Insert("INSERT INTO tbl_overtime (user_id,start_time,end_time,duration,apply_desc,festival,creat_time,review_status,reviewer_id,review_time) " +
            "VALUES (#{userId},#{startTime},#{endTime},#{duration},#{applyDesc},#{festival},#{creatTime},#{reviewStatus},#{reviewerId},#{reviewTime})")

    /**
     * 保存加班申请
     */
    public int saveOvertimeApply(Overtime overtime);


}
